// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 34;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You are on the outskirts of Jajayim, the largest 'city' in the High Litha. It is an ancient clump of stone buildings, crumbling and neglected, hiding at the base of a tall cliff.";
	text2 = "You see few people wandering its streets. Makes sense. it's pretty cold. It is a pale shadow of the prosperous, wild Ro cities of the south.";
	text3 = "This is where you are likely to find Haven's governor and the Litha's Raasa. You can continue to obey your mother's wishes.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "A large clan of the High Litha has settled in this sheltered valley. They've probably lived here for centuries. You charitably guess that they have spoken to outsiders at some point in the last hundred years.";
	text2 = "The warriors of the clan are gathered behind a fortification, weapons out. They watch your approach.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,16) < 110;
	question = "Approach them.";
	text1 = "When you get close, an old, lifeworn woman standing behind the warriors cries, _That's close enough, Haven. We've heard the tales. We aren't yet convinced the blood of the Ro flows in your veins!_";
	text2 = "_Prove you have Ro spirit, and we'll let you in!_";
	text3 = "A bloodbath here probably wouldn't be good for Haven's prospects in this region. You turn back.";
	action = END_TALK;
	

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(80,16) >= 110;
	question = "Approach them.";
	text1 = "When you get close, an old, lifeworn woman standing behind the warriors cries, _That's close enough, Haven. We've heard the tales. Does the blood of the Ro flow in your veins?_";


begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "They watch emotionlessly as you retreat.";
	action = END_TALK;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Well, it sometimes flows off my sword._";
	text1 = "They have a good laugh about this. She cries, _We've heard the tales. You will never truly be one of us, but you have a bit of mad spirit in you. Good enough for hospitality._";
	text2 = "The guards step aside, letting you in.";
	action = END_TALK;
	code =
		ro_faction(1);
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_It does._";
	text1 = "The guards nod. She says, _We've heard the tales. You will never truly be one of us, but you seem like you need not be our enemy. Good enough for hospitality._";
	text2 = "The guards step aside, letting you in.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I am a pure Havenite. I would be nothing else._";
	text1 = "She nods. _Fairly spoken, but this valley is for Ro. We wish you safe travels, but you need to go._";
	text2 = "She turns and leaves. The guards remain. You are stuck outside.";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "The clan watches you quietly as you walk around their compound. The small children, clad in so many thick furs they look like big balls, are particularly fascinated.";
	text2 = "Wherever you go, you are offered tea, light meals, and the occasional strong, peculiar, sour Ro beverage. They don't talk much. They just stare at you, sizing you up.";
	text3 = "The clan welcomes your return. There is still little conversation. Just sharing their humble fare and watching you in fascination.";
	text4 = "Before you depart, they ask if you would like to trade.";
	code =
		if (gf(134,12) == 0) {
			sf(134,12,1);
			rs(3);
			}
			else {
				rs(1);
				rs(2);
				}
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Trade with them.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Lithan Clan",
		  "shopdesc.",
		  29,4,0);	
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "Many of them gather at the fence to watch you go. You still can't read a single emotion on their faces. A worrying failure for a supposed diplomat.";
	action = END_TALK;


	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				